package com.emmmya.ocs.modules.system.serviceImpl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.emmmya.ocs.common.base.BaseDao;
import com.emmmya.ocs.modules.system.dao.SysLogDao;
import com.emmmya.ocs.modules.system.dao.mapper.SysLogMapper;
import com.emmmya.ocs.modules.system.entity.SysLog;
import com.emmmya.ocs.modules.system.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @description:
 * @author: 咕噜肉IT小店-黑医
 * @createDate: 2020-12-11
 * @version: 1.0
 */
@Service
@Transactional
public class SysLogServiceImpl implements SysLogService {
    @Autowired
    private SysLogDao sysLogDao;

    @Autowired
    private SysLogMapper sysLogMapper;
    @Override
    public BaseDao<SysLog, Long> getRepository() {
        return sysLogDao;
    }

    @Override
    public void getListByPage(IPage<SysLog> page, Wrapper<SysLog> wrapper){
        sysLogMapper.selectPage(page,wrapper);
    }

}
